﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Castle.DynamicProxy;
using System.ComponentModel.Composition;
namespace PlutoStudio.Aop
{
    [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
    [MetadataAttribute]
    public abstract class InterceptorAttribute : ExportAttribute, IInterceptor
    {
        public bool HasIntercept
        {
            get
            {
                return true;
            }
        }

        public virtual void Intercept(IInvocation invocation)
        {
            invocation.Proceed();
        }
    }
}
